package com.jae.mapper;

import com.jae.model.role.Role;
import com.jae.model.role.RoleDTO;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 角色Mapper
 * 
 * @author Jae
 * @email 1571878499@qq.com
 * @date 2020-12-01 09:22:10
 */
@Repository
public interface RoleMapper{

	List<RoleDTO> findAll(Map map);
	
	RoleDTO findOne(Map map);
	
	RoleDTO findById(Role role);
	
	int insert(Role role);
	
	int update(Role role);
	
	int updateDelete(Role role);
	
	int delete(Role role);

	List<String> findByResc(Long resc_id);

	List<Role> findByUserId(Long user_id);

}